package com.zhuliwei.entity;
    public class RecognitionItem {
        private String goodsId;
        private int num;

        public RecognitionItem(String goodsId, int num) {
            this.goodsId = goodsId;
            this.num = num;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public int getNum() {
            return num;
        }

        // 累加数量，便于后续合并相同商品
        public void addNum(int n) {
            this.num += n;
        }
    }